/* ---------------------------------------------------------------------------
 * This software is in the public domain, furnished "as is", without technical
 * support, and with no warranty, express or implied, as to its usefulness for
 * any purpose.
 *
 * Injector.h
 *
 * Author: Guillaume Boissé
 * -------------------------------------------------------------------------*/

#ifndef _JSP_INJECTOR_H
#define _JSP_INJECTOR_H

#include "Parser.h"

namespace jsp
{

class Injector : protected Parser
{
public:
    Injector(const s8* pFilename)
        : Parser(pFilename) {}
    virtual ~Injector() {}

    error_t inject();
    error_t evaluate();

protected:
    virtual void onStatement();
};

} // namespace jsp

#endif // _JSP_INJECTOR_H
